<?php

namespace app\common\validate;

use think\Validate;

class Shop extends Validate
{
	protected $rule = [
        'logo' => 'require',
		'name' => 'require',
        'shopkeeper' => 'require',
		'mobile' => ['require','regex' => '/^1[3|4|5|7|8][0-9]\d{4,8}$/i'],
        'address' => 'require',
	];
	protected $message = [
        'logo.require' => '请上传门店logo',
        'name.require' => '门店名称不能为空',
        'shopkeeper.require' => '店主姓名不能为空',
		'mobile.require' => '手机号码不能为空',
		'mobile.regex' => '手机号码格式错误',
        'address.require' => '请输入详细地址',
	];
}